using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using DAO;
using DTO;
namespace BUS
{
    public class CKhachHangBus
    {
        public void CKHThem(CKhachHangDto aKhachHang)
        {
            CKhachHangDao CKHDaoKH = new CKhachHangDao();
            CKHDaoKH.CKHThem(aKhachHang);
        }

        public void CKHXoa(int aid)
        {
            CKhachHangDao CKHDaoKH = new CKhachHangDao();
            CKHDaoKH.CKHXoa(aid);
        }

        

        public void CKHCapNhat(CKhachHangDto aKhachHangMoi, int aid)
        {
            CKhachHangDao CKHDaoKH = new CKhachHangDao();
            CKHDaoKH.CKHCapNhat(aKhachHangMoi, aid);


        }

        public DataTable CKHLayDS()
        {
            CKhachHangDao CKHDaoKH = new CKhachHangDao();
            DataTable dtDS = CKHDaoKH.CKHLayDS();

            return dtDS;

        }

        public int TimMaKH(string TenDangNhap, string MatKhau)
        {
            CKhachHangDao CKHDaoKH = new CKhachHangDao();
            int MaKH = CKHDaoKH.TimMaKH(TenDangNhap, MatKhau);
            return MaKH;

        }

    }
}
